package com.itheima.zxy;

import javax.swing.*;
import java.awt.*;

public class demo01 {
    public static void main(String[] args) {
        JFrame jf = new JFrame();
        jf.setSize(600, 400);
        jf.setLocationRelativeTo(null);
        jf.setTitle("happy frame");
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JButton btn = new JButton("click");
        btn.setFont(new Font(Font.DIALOG_INPUT, Font.BOLD, 20));
        jf.add(btn);
        jf.setVisible(true);
    }
}
